Search Java Code Snippets


  Help us in improving the repository. Add new snippets through 'Submit Code Snippet ' link.





#Java - Code Snippets for '#Org.apache.ace.client.repository.object.Feature2DistributionAssociation' - 1 code snippet(s) found

 Sample 1. Code Sample / Example / Snippet of org.apache.ace.client.repository.object.Feature2DistributionAssociation

    public void TestFeature2DistributionAssociations() {

initializeRepositoryAdmin();

FeatureObject f1 = createBasicFeatureObject("feature1");

DistributionObject d1 = createBasicDistributionObject("distribution1");

Feature2DistributionAssociation f2d1 = m_feature2DistributionRepository.create(f1, d1);



assert (f2d1.getLeft().size() == 1) && f2d1.getLeft().contains(f1) : "Left side of the association should be our feature.";

assert (f2d1.getRight().size() == 1) && f2d1.getRight().contains(d1) : "Right side of the association should be our distribution.";



assert f1.getArtifacts().size() == 0 : "Feature 1 should not be associated with any artifacts; it is associated with " + f1.getArtifacts().size() + ".";

assert f1.getDistributions().size() == 1 : "Feature 1 should be associated with exactly one distribution; it is associated with " + f1.getDistributions().size() + ".";



assert d1.getFeatures().size() == 1 : "Distribution 1 should be associated with exactly one feature; it is associated with " + d1.getFeatures().size() + ".";

assert d1.getTargets().size() == 0 : "Distribution 1 should not be associated with any targets; it is associated with " + d1.getTargets().size() + ".";

}


   Like      Feedback      org.apache.ace.client.repository.object.Feature2DistributionAssociation



Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner